package com.mytools.common.example.threadPool.reject;

import com.mytools.common.example.threadPool.MyThreadPool;

import java.util.concurrent.RejectedExecutionException;

/**
 * @author LJK
 * @description
 * @date 2025/1/30
 */
public class AbortPolicy implements RejectHandler{
    @Override
    public void reject(Runnable rejectCommand, MyThreadPool myThreadPool) {
        throw new RejectedExecutionException("阻塞队列满了！");
    }
}
